﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuleFrameWork
{
    public class Flowchart<TData, TResult>
    {

        public List<Shape<TData, TResult>> Shapes;


        public Flowchart()
        {
            this.Shapes = new List<Shape<TData, TResult>>();
        }

        public Shape<TData, TResult> LastShape()
        {
            if (this.Shapes.Any())
            {
                return this.Shapes[this.Shapes.Count - 1];
            }
            return null;
        }

        public EvaluationResults<TData, TResult> Evaluate(TData data)
        {

            var currentShape = Shapes[0];




            return new EvaluationResults<TData, TResult>();
        }


    }
}
